<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>登录</title>
<script type="text/javascript" src="../staticresource/js/jquery.min.js"></script>
<script type="text/javascript" src="../staticresource/js/base/base.js"></script>
<link rel="stylesheet" href="../staticresource/css/login.css" />
<style>
</style>
</head>

<body>
	<div id="logindiv">
		<form>
			<input value="dj01" id="account" name="name" class="logininput"
				placeholder="手机号或邮箱" /> <input value="gamiwork01" id="pwd"
				name="pwd" type="password" class="logininput" placeholder="密码" />
			<button id="loginbtn" type="button" onclick="login();">Login</button>
		</form>
	</div>
	<div class="imgcontent">
		<img src="../staticresource/images/bg05.jpg" class="loginbg" />
	</div>
</body>
<script>
	function login() {
		var account = $("#account").val();
		var pwd = $("#pwd").val();
		$.ajax({
			url : basePath + "login/loginIn",
			type : "post",
			data : {
				account : account,
				pwd : pwd
			},
			dataType : "json",
			success : function(data) {
				if (data.flag) {
					window.location.href = basePath + "html/page/system/index.html";
				} else {
					alert("登录失败");
				}
			}
		})
	}
</script>
</html>
